package com.dlc.shop.bean.event;

import com.dlc.shop.bean.vo.StockPointSkuVO;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 *  es商品事件， 获取商品信息
 * @author lhd
 */
@Data
public class SeckillOrderStockEvent {
    public SeckillOrderStockEvent(Long seckillId, List<StockPointSkuVO> stockPointSkuList) {
        this.seckillId = seckillId;
        this.stockPointSkuList = stockPointSkuList;
    }

    /**
     * 秒杀skuId
     */
    private Long seckillId;
    /**
     * 区域库存列表
     */
    private List<StockPointSkuVO> stockPointSkuList;
    /**
     * 秒杀sku库存集合
     */
    private Map<String, Integer> stockMap;
}
